import { useRoutes } from "react-router-dom";
import Todo from "../pages/todo";

const TodoRoutes=() => {
    return useRoutes([
        {
            path:"",
            element:<Todo/>
        },{
            path:"*",
            element:<div>todo-404</div>
        }
    ])
}
export default TodoRoutes;